package ar.edu.itba.it.cg.grupo01.state;

import java.util.HashMap;
import java.util.Map;

/**
 * User: cabe
 * Date: Jul 6, 2010
 * Time: 9:30:42 PM
 */
public class GameStateManager {

    private static GameStateManager instance = new GameStateManager();
    private static Map<String, MyGameState> states = new HashMap<String, MyGameState>();
    private static MyGameState activeState;

    public static GameStateManager getInstance() {
        return instance;
    }

    private GameStateManager() {
    }

    public static void addState(String id, MyGameState state) {

        states.put(id, state);
    }

    public static void activateState(String id) {

        activeState = states.get(id);
    }
}
